cmake_minimum_required (VERSION 3.20)
 
project(RangesDemo LANGUAGES CXX)

set(CMAKE_CXX_STANDARD_REQUIRED ON) 
if (MSVC)
    add_compile_options(/std:c++latest)
else(MSVC)
    set(CMAKE_CXX_STANDARD 20)
endif()

add_executable(${PROJECT_NAME} main.cc)

# target_compile_options(${PROJECT_NAME}  PRIVATE /std:c++latest)

